<?php 

class IndexController extends Zend_Controller_Action
{
	function init()
	{
		$this->initView();
		$this->view->baseUrl = $this->_request->getBaseUrl();
		$this->view->user = Zend_Auth::getInstance()->getIdentity();
	}
	
	function indexAction() 
	{
	}
	
	function accessDeniedAction()
	{
	    if ($this->_request->get("redirect")) {
	        $this->view->redirectedFrom = urldecode($this->_request->get("redirect"));
	    } else {
	        $this->view->redirectedFrom = null;
	    }
			
		$this->view->loggedIn = Zend_Auth::getInstance()->hasIdentity();
	}
}
